# $Id: PKGBUILD 56428 2011-10-07 09:56:04Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-html-tableextract
pkgver=2.11
pkgrel=1
pkgdesc="Perl/CPAN Module HTML::TableExtract : Flexible HTML table extraction"
arch=('any')
url="http://search.cpan.org/~msisk/HTML-TableExtract/"
license=("GPL" "PerlArtistic")
makedepends=("perl-html-parser" "perl-html-element-extended")
depends=("perl-html-parser" "perl-html-element-extended")
source=("http://www.cpan.org/authors/id/M/MS/MSISK/HTML-TableExtract-$pkgver.tar.gz")
md5sums=('ac1b8fa092d53931a9f3fdbba330f5b0')

build() {
  cd $srcdir/HTML-TableExtract-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd $srcdir/HTML-TableExtract-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
